#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H
#include<QString>
#include <QPushButton>

class MypushButton : public QPushButton
{
    Q_OBJECT
public:
    //explicit MypushButton(QWidget *parent = nullptr);
       MypushButton(QString normalImag,QString pressImg = "");
       QString normalImgPath;  //默认显示图片路径
       QString pressedImgPath; //按下后显示图片路径

     //重写按钮按下和释放
     void mousePressEvent(QMouseEvent *e);

     void mouseReleaseEvent(QMouseEvent *e);



       void zoom1();
       void zoom2();

signals:

public slots:
};

#endif // MYPUSHBUTTON_H
